# -*- coding: utf-8 -*-

# Scrapy settings for sp project
#
# For simplicity, this file contains only the most important settings by
# default. All the other settings are documented here:
#
#     http://doc.scrapy.org/en/latest/topics/settings.html
#

BOT_NAME = 'sp'

SPIDER_MODULES = ['sp.spiders']
NEWSPIDER_MODULE = 'sp.spiders'

# Crawl responsibly by identifying yourself (and your website) on the user-agent
#USER_AGENT = 'sp (+http://www.yourdomain.com)'
USER_AGENT = 'Baiduspider+(+http://www.baidu.com/search/spider.htm)'

ITEM_PIPELINES = {
    'sp.pipelines.StoreImgPipeline':1,
    'sp.pipelines.SpPipeline':100,
}

AUTOTHROTTLE_ENABLED = True

AUTOTHROTTLE_DEBUG = True

IMAGES_STORE  = 'images/'